package com.hxgz.steel.dao;

import com.hxgz.steel.domain.AskInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("AskInfoMapper")
public interface AskInfoMapper {

  int deleteByPrimaryKey(Long id);

  int insert(AskInfo record);

  int insertSelective(AskInfo record);

  AskInfo selectByPrimaryKey(Long id);

  int updateByPrimaryKeySelective(AskInfo record);

  int updateByPrimaryKey(AskInfo record);

  List<AskInfo> listGoodsByAskId(@Param("orderId") Long orderId, @Param("userId") Long userId);

  int getNumbyId(Integer askId);

  List<AskInfo> getInfoListByAskId(Long id);

  Long getIdByQuotation(@Param("id") Long id, @Param("i") Integer i);

  List<AskInfo> listAskGoodsByAskId(@Param("askId") Long askId, @Param("userId") Long userId);

  List<AskInfo> selectByAskId(@Param("askId") Long askId);

  int deleteByaskId(Long id);

  List<AskInfo> getInfoListByQuotationId(Long quotationId);

  List<AskInfo> getInfoListAndPriceByAskId(@Param("askId") Long askId);

}